/**
 * DishXM.java
 * Nov 14, 2013
 * Copyright: duylqkse60752@fpt.edu.vn
 */
package XMLEntities;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @author Lubu
 * @version 1.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Dish", propOrder = { "id", "name", "calo", "cookingName", "description", "imgPath" })
public class DishXM {
	@XmlAttribute(required = true)
	private int id;
	@XmlElement(required = true)
	private String name;
	@XmlElement(required = true)
	private int calo;
	@XmlElement(required = true)
	private String description;
	@XmlElement(required = true)
	private String imgPath;
	@XmlElement(required = true)
	private String cookingName;
	public DishXM() {
		super();
		// TODO Auto-generated constructor stub
	}
	public DishXM(int id, String name, int calo, String description,
			String imgPath, String cookingName) {
		super();
		this.id = id;
		this.name = name;
		this.calo = calo;
		this.description = description;
		this.imgPath = imgPath;
		this.cookingName = cookingName;
	}
	/**
	 * Get value of the id
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * Set value for the id
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * Get value of the name
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * Set value for the name
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * Get value of the calo
	 * @return the calo
	 */
	public int getCalo() {
		return calo;
	}
	/**
	 * Set value for the calo
	 * @param calo the calo to set
	 */
	public void setCalo(int calo) {
		this.calo = calo;
	}
	/**
	 * Get value of the description
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * Set value for the description
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * Get value of the imgPath
	 * @return the imgPath
	 */
	public String getImgPath() {
		return imgPath;
	}
	/**
	 * Set value for the imgPath
	 * @param imgPath the imgPath to set
	 */
	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}
	/**
	 * Get value of the cookingName
	 * @return the cookingName
	 */
	public String getCookingName() {
		return cookingName;
	}
	/**
	 * Set value for the cookingName
	 * @param cookingName the cookingName to set
	 */
	public void setCookingName(String cookingName) {
		this.cookingName = cookingName;
	}

	
}
